package com.hns.can.base.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.hns.can.common.entity.BaseEntity;

/**
 * 用户表实体
 * @author:Fisher
 * @email:zhuangcaijin@126.com
 * @version Revision 2.0.0
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "T_SYS_USER")
public class SysUserEntity extends BaseEntity {
    
    @Id
    @Column(name = "ID")
    private String id;
    
    @Column(name = "CORP_ID")
    private String corpId;
    
    @Column(name = "CODE")
    private String code;
    
    @Column(name = "NAME")
    private String name;
    
    @Column(name = "ACCT_NAME")
    private String acctName;
    
    @Column(name = "PASSWORD")
    private String password;
    
    @Column(name = "USER_TYPE")
    private String userType;
    
    @Column(name = "START_DATE")
    private String startDate;
    
    @Column(name = "END_DATE")
    private String endDate;
    
    @Column(name = "IS_CLOSED")
    private String isClosed;
    
    @Column(name = "REMARK")
    private String remark;
    
    @Column(name = "CREATE_TS")
    private Date   createTs;
    
    @Column(name = "CTC_TEL")
    private String ctcTel;
    
    @Column(name = "ORGAN_ID")
    private String organId;
    
    // 是否允许在手机端登录
    @Column(name = "ALLOW_MOBILE_LOGIN")
    private String allowMobileLogin;
    
    @Transient
    private String organName;
    @Transient
    private String organCd;
    @Transient
    private String corpName;        // 企业名称
    @Transient
    private String provinceId;      // 企业所在省份
    @Transient
    private String cityId;          // 企业所在城市
    @Transient
    private String codeName;        // code和用户名一起显示
    @Transient
    private String corpShrtnm;      // 企业简称
    @Transient
    private String type;            // 类型区分(1:机构、2:用户)
    @Transient
    private String pId;
    @Transient
    private String oldPass;
    @Transient
    private String newPass;
    @Transient
    private String confirmPass;
    @Transient
    private String officename;
    @Transient
    private String provinceName;
    @Transient
    private String isAdminRole;

    @Transient
    private String roleType;



    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    @Transient
    private String loginType;
	
	public String getLoginType() {
        return loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }
	
	public String getCodeName() {
        return codeName;
    }
    
    public void setCodeName(String codeName) {
        this.codeName = codeName;
    }
    
    public String getOrganCd() {
        return organCd;
    }
    
    public void setOrganCd(String organCd) {
        this.organCd = organCd;
    }
    
    public String getOrganName() {
        return organName;
    }
    
    public void setOrganName(String organName) {
        this.organName = organName;
    }
    
    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getCorpId() {
        return this.corpId;
    }
    
    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }
    
    public String getCode() {
        return this.code;
    }
    
    public void setCode(String code) {
        this.code = code;
    }
    
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getAcctName() {
        return this.acctName;
    }
    
    public void setAcctName(String acctName) {
        this.acctName = acctName;
    }
    
    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getUserType() {
        return this.userType;
    }
    
    public void setUserType(String userType) {
        this.userType = userType;
    }
    
    public String getStartDate() {
        return this.startDate;
    }
    
    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }
    
    public String getEndDate() {
        return this.endDate;
    }
    
    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
    
    public String getIsClosed() {
        return this.isClosed;
    }
    
    public void setIsClosed(String isClosed) {
        this.isClosed = isClosed;
    }
    
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }
    
    public Date getCreateTs() {
        return this.createTs;
    }
    
    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }
    
    public String getCorpName() {
        return corpName;
    }
    
    public void setCorpName(String corpName) {
        this.corpName = corpName;
    }
    
    public String getProvinceId() {
        return provinceId;
    }
    
    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }
    
    public String getCityId() {
        return cityId;
    }
    
    public void setCityId(String cityId) {
        this.cityId = cityId;
    }
    
    public String getCtcTel() {
        return ctcTel;
    }
    
    public void setCtcTel(String ctcTel) {
        this.ctcTel = ctcTel;
    }
    
    public String getOrganId() {
        return organId;
    }
    
    public void setOrganId(String organId) {
        this.organId = organId;
    }
    
    public String getCorpShrtnm() {
        return corpShrtnm;
    }
    
    public void setCorpShrtnm(String corpShrtnm) {
        this.corpShrtnm = corpShrtnm;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getpId() {
        return pId;
    }
    
    public void setpId(String pId) {
        this.pId = pId;
    }
    
    public String getOldPass() {
        return oldPass;
    }
    
    public void setOldPass(String oldPass) {
        this.oldPass = oldPass;
    }
    
    public String getNewPass() {
        return newPass;
    }
    
    public void setNewPass(String newPass) {
        this.newPass = newPass;
    }
    
    public String getConfirmPass() {
        return confirmPass;
    }
    
    public void setConfirmPass(String confirmPass) {
        this.confirmPass = confirmPass;
    }
    
    public String getOfficename() {
        return officename;
    }
    
    public void setOfficename(String officename) {
        this.officename = officename;
    }
    
    public String getProvinceName() {
        return provinceName;
    }
    
    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }
    
    public String getAllowMobileLogin() {
        return allowMobileLogin;
    }
    
    public void setAllowMobileLogin(String allowMobileLogin) {
        this.allowMobileLogin = allowMobileLogin;
    }
    
    public String getIsAdminRole() {
        return isAdminRole;
    }
    
    public void setIsAdminRole(String isAdminRole) {
        this.isAdminRole = isAdminRole;
    }
    
}
